@extends('layouts.admin')
@push('morecss')
@endpush

@push('morescript')
    <script type="application/javascript">
        let page_params = {
            @can('admin.wxmsg.event')
            url_list: '{{ route('admin.wxmsg.event') }}',
            @endcan
            data_eventlist:@json($eventList),
        }
    </script>
    <!-- require page js -->
    <script src="{{ mix('js/admin/wxmsg_event.js') }}"></script>
@endpush
@section('content')
    <div class="wrapper wrapper-content animated fadeInRight ecommerce">
        <div class="ibox-content m-b-sm border-bottom">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <label class="control-label" for="event">事件类型</label>
                        <select class="form-control" name="event" id="event" v-model="searchParams.event">
                            <option value="">请选择...</option>
                            <option v-for="item in event_list" v-bind:value="item.key">@{{ item.name }}</option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <label class="control-label" for="keyword">用户openId</label>
                        <input type="text" id="openid" name="openid" v-model="searchParams.openid"
                               placeholder="请输入用户openId"
                               class="form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <div class="col-sm-12">
                            <div class="col-sm-6">
                                <label class="control-label" for="keyword">开始时间</label>
                                <div>
                                <vue-datepicker-local
                                        v-model="start_time"
                                        format="YYYY-MM-DD HH:mm:ss" clearable
                                        placeholder="开始时间"></vue-datepicker-local>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <label class="control-label" for="keyword">结束时间</label>
                                <div>
                                <vue-datepicker-local
                                        v-model="end_time"
                                        format="YYYY-MM-DD HH:mm:ss" clearable
                                        placeholder="结束时间"></vue-datepicker-local>
                                <div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <label class="control-label" for="product_name">&nbsp;&nbsp;</label>
                        <div>
                            <button class="btn btn-primary" type="button" v-on:click="query"><i
                                        class="fa fa-search"></i>
                                搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="toolbar" class="col-sm-5" style="width: 300px;">
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <table id="table" data-classes="table table-no-bordered">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection